package com.pxmeta.audio.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pxmeta.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("kt_music")
public class Music extends BaseEntity {
    /**
     * id
     */
    @TableId(type = IdType.NONE)
    @ApiModelProperty(value = "音乐id")
    private Long id;

    @ApiModelProperty(value = "音乐名")
    private String name;

    @ApiModelProperty(value = "歌手")
    private String singer;

    @ApiModelProperty(value = "歌手图片")
    private String poster;

    @ApiModelProperty(value = "歌词格式类型")
    private String lyricType;

    @ApiModelProperty(value = "歌曲资源类型")
    private Integer type;

    @ApiModelProperty(value = "歌曲时长（秒）")
    private Integer duration;

    @ApiModelProperty(value = "歌曲状态")
    private Integer status;

    @ApiModelProperty(value = "歌曲是否支持演唱评分功能")
    private Integer pitchType;

    @ApiModelProperty(value = "是否喜欢")
    @TableField(exist = false)
    private Boolean isLike;
}
